package com.glory.wxelectricitypda.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.wxelectricitypda.R;
import com.glory.wxelectricitypda.bean.InboundDetailsBean;

import java.util.List;


public class InboundDetailsAdapter extends BaseQuickAdapter<InboundDetailsBean, BaseViewHolder> {


    public InboundDetailsAdapter(@Nullable List<InboundDetailsBean> data) {
        super(R.layout.adapter_inbound_details,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, InboundDetailsBean item) {
        helper.setText(R.id.position,String.valueOf(helper.getAdapterPosition()+1));
        helper.setText(R.id.packlotid,item.getXSBEPACKAGEDETAIL().getPACKLOTID());
        helper.setText(R.id.packmainqty,String.valueOf(item.getXSBEPACKAGEDETAIL().getPACKMAINQTY()));
    }

}
